<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
*{font-family:Tahoma, Arial, Helvetica, Sans-serif,"宋体";}
table{
	width:85%;
	margin:0px auto;
	font:Georgia 11px;
	font-size:12px;
	color:#333333;
	text-align:center;
	border:1px solid #999;
	border-collapse:collapse;/*细线表格代码*/
}
table td{
	border:1px solid #999;/*细线表格线条颜色*/
	height:22px;
}
caption{text-align:center;font-size:12px;font-weight:bold;margin:0 auto;}
tr.t1 td {background-color:#fff;}
tr.t2 td {background-color:#eee;}
tr.t3 td {background-color:#ccc;}
th,tfoot tr td{font-weight:bold;text-align:center;background:#c5c5c5;}
th{line-height:30px;height:30px;}
tfoot tr td{background:#fff;line-height:26px;height:26px;}
thead{border:1px solid #999;}
thead tr td{text-align:center;}
#page{text-align:center;float:right;}
#page a,#page a:visited{width:60px;height:22px;line-height:22px;border:1px black solid;display:block;float:left;margin:0 3px;background:#c9c9c9;
text-decoration:none;}
#page a:hover{background:#c1c1c1;text-decoration:none;}
.grayr {padding:2px;font-size:11px;background:#fff;float:right;}
.grayr a {padding:2px 5px;margin:2px;color:#000;text-decoration:none;;border:1px #c0c0c0 solid;}
.grayr a:hover {color:#000;border:1px orange solid;}
.grayr a:active {color:#000;background: #99ffff}
.grayr span.current {padding:2px 5px;font-weight:bold; margin:2px; color: #303030;background:#fff;border:1px orange solid;}
.grayr span.disabled {padding:2px 5px;margin:2px;color:#797979;background: #c1c1c1;border:1px #c1c1c1 solid;}
a{
	text-decoration:none;
	}
	img{
		border:0px;}
-->
</style>
<script src="../admin_core/templates/admin/js/list.js"></script>
<script type="text/javascript"><!--
function selectPage(obj)
{

	var value = obj.value;
	document.location.href="controlLs.php?action=#{$action}#&page="+value+"&countPage=#{$countPage}#&count=#{$count}#&before=#{$before}#&after=#{$after}#";
	}
	function select()
	{
		var logList =  document.getElementsByName("lyId[]");
		for(var i=0;i<logList.length;i++)
		{
			var obj = logList[i];
			obj.checked =!obj.checked;
			}
		
	}
	function checkChecked()
	{
		var logList =  document.getElementsByName("lyId[]");
		var checkState = false;
		for(var i=0;i<logList.length;i++)
		{
			var obj = logList[i];
			if(obj.checked)
				{
				checkState = true;
				}
			
			}
		if(!checkState)
			{
			alert("至少选中一个！");
			}
		else
			{
			if(confirm("确认删除吗？"))
			document.getElementById('selectForm').submit();
			}
	}
	function searchLY()
	{
		var before = document.getElementById('before').value;
		var after =  document.getElementById('after').value;
		if(before== "")
		{
			alert("请选择一个开始时间！");
			 document.getElementById('before').focus();
			}
			else if(after == "")
			{
				alert("请选择一个结束时间！");
				document.getElementById('after').focus();
				}
				else
				{
				 document.location.href = "controlLs.php?action=#{$action}#&before="+before+"&after="+after;
					}
		}
			function checkStudentDetail(xsId)
	{
		window.open('../readStudentDetail.php?xsId='+xsId,'学生信息' ,'height=500, width=900, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
		}
--></script>
<script type="text/javascript" src="date/WdatePicker.js"></script>
</head>

<body style="text-align:center;">
<center>

<fieldset  style=" width:1110px;">
<legend><img src="images/311.gif"/>&nbsp;<span style="font-size: 15px"></span><span style="color:#333; font-size:15px; font-weight:bold;">需回复的留言列表</span></legend>
<span style="font-size:13px; color:#F00;">(选择的日期均是当天的00:00)</span>
<form id="selectForm" action="controlXs.php?action=deletLy" method="post">
<br />
<span style="font-size:13px; font-weight:bold;">&nbsp;按照留言时间查看：从
<input  type="text" name="before" id="before"  class="Wdate"onfocus="var after=$dp.$('after');WdatePicker({onpicked:function(){after.focus();},maxDate:'#F{$dp.$D(\'after\')}'})"
 style="width:180px; height:15px; color:#09C;" />
&nbsp;到&nbsp;<input  type="text" name="after" id="after"  class="Wdate" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'before\')}'})" style="width:180px; height:15px; color:#09C;" >&nbsp;的日志&nbsp;&nbsp;
<input type="button" value=" 查 看 " style="font-size:13px;" onclick="searchLY()" />

</span>
<br />

<br />
<table>
  <caption style="font-size:14px;">
   #{if $before!=""}#
  从&nbsp;&nbsp;<span style="font-size:12px; color:#09F; font-weight:normal;">#{$before|date_format :'%Y-%m-%d'}#</span>&nbsp;&nbsp;到&nbsp;&nbsp;<span style="font-size:12px; color:#09F; font-weight:normal;">#{$after|date_format :'%Y-%m-%d'}#</span>&nbsp;所有需回复的留言列表
  #{/if}#
</caption>
  <thead>
    <tr>
 
      <th >留言主题</th>
      
      <th width="20%">留言的学生</th>
      <th width="15%">留言日期</th>
       <th width="10%">操作</th>
    </tr>
  </thead>
  <tbody id="tab">
#{if $count==0}#
 <tr onmousemove="changeBackColor(this)" onmouseout="removeBackColor(this)">

      <td width="20%" align="left" style="padding-left:5px; text-align:center;" colspan="4">暂无记录!</td>
      
      
      </tr>
#{else}#
    #{foreach from=$list item=ly}#
      <tr onmousemove="changeBackColor(this)" onmouseout="removeBackColor(this)">

      <td width="20%" align="left" style="padding-left:5px;">#{$ly->getLy_title()|truncate:30:"...."}#</td>
      
      <td align="left" style="padding-left:5px;cursor:pointer;" onclick="checkStudentDetail(#{$ly->getXs()->getXs_id()}#)" title="查看该学生信息">#{$ly->getXs()->getXs_name()}#</td>
      <td width="15%" align="center">#{$ly->getLy_date()|date_format :'%Y-%m-%d'}#</td>
       <td width="10%" align="center"><a href="../hfLY.php?lyId=#{$ly->getLy_id()}#" title="回复">回复</a></td>
      </tr>
 #{/foreach}#
#{/if}#


</tbody>

  <tr>
  <td colspan="4" align="right" style="text-align:right; border:#999 solid 1px; font-weight:bold;">
  共有#{$count}#条记录 总共有#{$countPage}#页 当前为#{$start}#-#{$end}#条 在第#{$nowPage}#页
  #{if $nowPage==1}#
 上一页
  #{else}#
  <a href="controlLs.php?action=#{$action}#&page=#{$nowPage-1}#&countPage=#{$countPage}#&count=#{$count}#&before=#{$before}#&after=#{$after}#">上一页</a>
  #{/if}#

  #{if $countPage>$nowPage}#
   <a href="controlLs.php?action=#{$action}#&page=#{$nowPage+1}#&countPage=#{$countPage}#&count=#{$count}#&before=#{$before}#&after=#{$after}#"> 下一页</a>
  #{else}#
  下一页
  #{/if}#
  跳至<select onchange="selectPage(this)">
  #{section loop=$countPage name=a}#
<option value="#{$smarty.section.a.iteration}#" #{if $smarty.section.a.iteration==$nowPage}# selected="selected"#{/if}#>#{$smarty.section.a.iteration}#页</option>
#{/section}#
</select>
  &nbsp;&nbsp;
  
  </td>
  </tr>

  
</table>
</form>
</fieldset>
</center>
</body>
</html>
